<div class="index-category">
    <notempty name="list">
        <ul class="flex-box">
            <volist name="list" id="vo" mod="4">
                <if condition="$i lt 8">
                <li>
                    <a href="{:U('Item/search', array('cid' => $vo['id']))}">
                        <empty name="vo.icon">
                            <img src="__IMG__/img-pai-bg.png" width="40" height="40">
                            <else/>
                            <img src="{:get_cover($vo['icon'], 'path')}" width="40" height="40">
                        </empty>
                        <span class="name">{$vo.name}</span>
                    </a>
                </li>
                <eq name="mod" value="3">
        </ul>
        <ul class="flex-box">
                </eq>
            </if>
            </volist>
            <!---设置第八个li为固定的更多按钮-->
            <li>
                <a href="{:U('Item/category')}">
                    <img src="__IMG__/img-pai-bg.png" width="40" height="40">
                    <span class="name">更多 &gt;</span>
                </a>
            </li>
        </ul>
    </notempty>
</div>